package com.apex.restful.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "T_BSDT_TECHNOLOGICAL")
public class TBsdtTechnological implements Serializable {
    private Long id;
    private String name;
    private String url;
    private Long type;//类型
    private String fwdx;//对象
    private Long fwfs;
    private Long zgbm;
    private String fwtp;
    private Long sftj;
    private Long sfyddzs;
    private Long state;
    private String fwsm;
    private String lcsm;
    private Long livebos;
    private String dxmc;
    private Date cjsj;
    private String fwdxName;//服务对象名称
    private Long fwl;//访问量
    private Long fwpj;//临时字段服务评价
    private TBsdtDictionary bsdtDictionary;
    private String fwlxFmt;//临时字段，服务类型
    private String cjsfFmt;//创建时间
    private Integer sfdy;//是否订阅
    private String zgbmFmt;//主管部门
    private TBsdtUserEvaluateServer evaluateDao;
    @Id
    /*@SequenceGenerator(name = "bsdt_technological_seq",sequenceName = "bsdt_technological_seq")*/
    @Column(name = "ID")
    /*@GeneratedValue(generator = "bsdt_technological_seq")*/
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "URL")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "TYPE")
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Basic
    @Column(name = "FWDX")
    public String getFwdx() {
        return fwdx;
    }

    public void setFwdx(String fwdx) {
        this.fwdx = fwdx;
    }

    @Basic
    @Column(name = "FWFS")
    public Long getFwfs() {
        return fwfs;
    }

    public void setFwfs(Long fwfs) {
        this.fwfs = fwfs;
    }

    @Basic
    @Column(name = "ZGBM")
    public Long getZgbm() {
        return zgbm;
    }

    public void setZgbm(Long zgbm) {
        this.zgbm = zgbm;
    }

    @Basic
    @Column(name = "FWTP")
    public String getFwtp() {
        return fwtp;
    }

    public void setFwtp(String fwtp) {
        this.fwtp = fwtp;
    }

    @Basic
    @Column(name = "SFTJ")
    public Long getSftj() {
        return sftj;
    }

    public void setSftj(Long sftj) {
        this.sftj = sftj;
    }

    @Basic
    @Column(name = "SFYDDZS")
    public Long getSfyddzs() {
        return sfyddzs;
    }

    public void setSfyddzs(Long sfyddzs) {
        this.sfyddzs = sfyddzs;
    }

    @Basic
    @Column(name = "STATE")
    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    @Basic
    @Column(name = "FWSM")
    public String getFwsm() {
        return fwsm;
    }

    public void setFwsm(String fwsm) {
        this.fwsm = fwsm;
    }

    @Basic
    @Column(name = "LCSM")
    public String getLcsm() {
        return lcsm;
    }

    public void setLcsm(String lcsm) {
        this.lcsm = lcsm;
    }

    @Basic
    @Column(name = "LIVEBOS")
    public Long getLivebos() {
        return livebos;
    }

    public void setLivebos(Long livebos) {
        this.livebos = livebos;
    }

    @Basic
    @Column(name = "DXMC")
    public String getDxmc() {
        return dxmc;
    }

    public void setDxmc(String dxmc) {
        this.dxmc = dxmc;
    }

    @Basic
    @Column(name = "CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "FWDX_NAME")
    public String getFwdxName() {
        return fwdxName;
    }

    public void setFwdxName(String fwdxName) {
        this.fwdxName = fwdxName;
    }

    @Basic
    @Column(name = "FWL")
    public Long getFwl() {
        return fwl;
    }

    public void setFwl(Long fwl) {
        this.fwl = fwl;
    }

    @OneToOne
    @JoinColumn(name = "TYPE",referencedColumnName = "ID",insertable = false,updatable = false)
    public TBsdtDictionary getBsdtDictionary() {
        return bsdtDictionary;
    }

    public void setBsdtDictionary(TBsdtDictionary bsdtDictionary) {
        this.bsdtDictionary = bsdtDictionary;
    }
    @Transient
    public Long getFwpj() {
        return fwpj;
    }

    public void setFwpj(Long fwpj) {
        this.fwpj = fwpj;
    }
    @Transient
    public String getFwlxFmt() {
        return fwlxFmt;
    }
    @Transient
    public void setFwlxFmt(String fwlxFmt) {
        this.fwlxFmt = fwlxFmt;
    }
    @Transient
    public String getCjsfFmt() {
        return cjsfFmt;
    }

    public void setCjsfFmt(String cjsfFmt) {
        this.cjsfFmt = cjsfFmt;
    }
    @Transient
    public Integer getSfdy() {
        return sfdy;
    }

    public void setSfdy(Integer sfdy) {
        this.sfdy = sfdy;
    }
    @Transient
    public TBsdtUserEvaluateServer getEvaluateDao() {
        return evaluateDao;
    }

    public void setEvaluateDao(TBsdtUserEvaluateServer evaluateDao) {
        this.evaluateDao = evaluateDao;
    }
    @Transient
    public String getZgbmFmt() {
        return zgbmFmt;
    }

    public void setZgbmFmt(String zgbmFmt) {
        this.zgbmFmt = zgbmFmt;
    }
}
